package com.hhf.rpc.core.fault.tolerant.impl;

import com.hhf.rpc.core.fault.tolerant.TolerantStrategy;
import com.hhf.rpc.core.model.RpcResponse;

import java.util.Map;

/**
 * @Author hhf
 * @Date 2024/10/20
 * @Description 快速失败
 */
public class FailFastTolerantStrategy implements TolerantStrategy {
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
        throw new RuntimeException("服务报错",e);
    }
}
